package com.lin.manager.oss.service;

import com.lin.manager.oss.model.dto.DownloadRespDTO;
import com.lin.manager.oss.model.dto.UploadRespDTO;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author linjiang
 * @date 2024/7/28
 * @fn
 */
public interface OssService {

    /**
     * 普通文件上传
     *
     * @param file
     * @return
     * @throws Exception
     */
    public UploadRespDTO upload(MultipartFile file) throws Exception;

    /**
     * 普通文件下载
     *
     * @param objectName
     * @return
     * @throws Exception
     */
    public DownloadRespDTO download(String objectName) throws Exception;

}
